<template>
  <el-dialog
    :close-on-click-modal="false"
    :show-close="false"
    title="本次提现商品"
    :visible.sync="isProduct"
  >
    <el-table :data="form" ref="multipleTable" border style="width:100%" class="table-box">
      <el-table-column label="商品名称" prop="shop.name"></el-table-column>
      <el-table-column label="规格" prop="ticket.spec_item	"></el-table-column>
      <el-table-column label="核销码" prop="code"></el-table-column>
      <el-table-column label="核销时间" prop="create_time"></el-table-column>
      <el-table-column label="结算价格" prop="goods.price"></el-table-column>
      <el-table-column label="核销人" prop="shop.name"></el-table-column>
    </el-table>
    <span slot="footer" class="dialog-footer">
      <el-button @click="$emit('closeDialog')" size="small">关闭</el-button>
    </span>
  </el-dialog>
</template>

<script lang="ts">
import { Component, Vue, Prop, Provide } from "vue-property-decorator";
import settlementApi from "@/api/settlement"
@Component({
  components: {}
})
export default class ProductDialog extends Vue {
  // 属性或参数中使用 ！：表示强制解析（告诉typescript编译器，这里一定有值），常用于vue-decorator中的@Prop
  @Prop(Boolean) isProduct!: boolean;
  @Provide() tableData: any = []; // 表格数据
  @Provide() multipleTable: any = []; // 表格数据
  @Provide() dateTime: any = [];
  @Prop() form!: {};
   
  created() {
  }
}
</script>

<style lang="scss" scoped>
.form-box {
  .el-input,
  .el-select {
    width: 200px !important;
  }
}
</style>
